Wheel Class Reference

#include <Wheel.h>

Inheritance diagram for Wheel:

TraffEduObject List of all members.

Public Member Functions

 Wheel ()
 Wheel (string pathname, float scale)
void draw (osg::ref_ptr< osg::Group > root, int animationFlag=-1)

Detailed Description

A class to implement one type of TraffEduObject, that is Wheel.

Definition at line 4 of file Wheel.h.


Constructor & Destructor Documentation

Wheel::Wheel (   ) 
 

A constructor. default constructor.

Definition at line 1 of file Wheel.cpp.

References TraffEduObject::setObjectType(), and WHEEL.

Wheel::Wheel (  string  pathname,
float  scale
) 
 

A constructor.

Parameters:
pathname string argument defining path name.
scale is a float argument defining scale factor of the vehicle model. initalize path and scale factor of the wheel model.

Definition at line 5 of file Wheel.cpp.

References TraffEduObject::setObjectType(), and WHEEL.


Member Function Documentation

void Wheel::draw (  osg::ref_ptr< osg::Group >  root,
int  animationFlag = -1
)  [virtual]
 

a normal member taking two arguments.

Parameters:
root is an osg::ref_ptr to osg::Group which the model node will be added.
animationFlag is an integer flag to specify whether the root is animation window root or not. this function adds the wheel model node to the root.

Implements TraffEduObject.

Definition at line 9 of file Wheel.cpp.

References TraffEduObject::addTree(), TraffEduObject::modelScale, TraffEduObject::objectGroup, TraffEduObject::returnNode(), and TraffEduObject::setScale().

Referenced by Vehicle::setWheels().


The documentation for this class was generated from the following files:
Generated on Sun May 28 18:54:15 2006 for TraffEdu by  doxygen 1.4.6-NO